from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension

setup(
    name='lane_decode',
    ext_modules=[
        CUDAExtension('lane_decode', [
            'src/lane_decode.cpp',
            'src/lane_decode_api.cpp',
        ],
        extra_compile_args={'cxx': ['-g', '-I /usr/local/cuda/include'],
                            'nvcc': ['-O2']})
    ],
    cmdclass={'build_ext': BuildExtension})
